package com.dmwork.service.work.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dmwork.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李天
 * @since 2021-03-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dm_work")
@ApiModel(value="Work对象", description="")
public class Work extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "作品名称")
    private String title;

    @ApiModelProperty(value = "作品类型id")
    private String typeId;

    @ApiModelProperty(value = "作品所属用户id")
    private String customerId;

    @ApiModelProperty(value = "作品封面")
    private String cover;

    @ApiModelProperty(value = "作品热度")
    private Integer hot;

    @ApiModelProperty(value = "作品收藏数")
    private Integer collectCount;

    @ApiModelProperty(value = "展示图片数量")
    private Integer pictureCount;

    @ApiModelProperty(value = "展示视频数量")
    private Integer videoCount;

    @ApiModelProperty(value = "网盘链接")
    private String netdiskUrl;

    @ApiModelProperty(value = "网盘验证码")
    private String netdiskCode;

    @ApiModelProperty(value = "作品状态【0>未发布，1->已发布】")
    private Integer status;

    @ApiModelProperty(value = "作品更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除（0为未删除，1为已删除）")
    @TableField("is_deleted")
    @TableLogic
    private Integer deleted;


}
